package AccionesSemanticas;

public class AccDelLastTokenChar implements AccSemantica {

    private StringBuilder tokenChars;
    
    //Semantic Action that deletes the last character of the buffer
    public AccDelLastTokenChar(StringBuilder tokenChars){
        this.tokenChars = tokenChars;
    }
   
    public String doAction() {
        tokenChars.deleteCharAt(tokenChars.length()-1);      
        return null;
    }
    
}